package com.zhanbo.zhanbowymusic.main.podcast.adapter;

import android.content.Context;

import com.mwx.baselib.base.BaseBindingAdapter;
import com.zhanbo.zhanbowymusic.R;
import com.zhanbo.zhanbowymusic.databinding.ItemPodcastTitleBinding;
import com.zhanbo.zhanbowymusic.databinding.ItemZimuBinding;
import com.zhanbo.zhanbowymusic.main.featured.bean.SingerZiMuListBean;
import com.zhanbo.zhanbowymusic.main.podcast.bean.PodcastTitleListBean;

public class PodcastTitleListAdapter extends BaseBindingAdapter<PodcastTitleListBean, ItemPodcastTitleBinding> {
    public PodcastTitleListAdapter(Context context) {
        super(context);
    }

    @Override
    protected int getLayoutResId(int viewType) {
        return R.layout.item_podcast_title;
    }

    @Override
    protected void onBindItem(ItemPodcastTitleBinding binding, PodcastTitleListBean item) {
        binding.tvTitle.setText(item.getName());
        if (item.isCheck()){
            binding.tvTitle.setTextSize(20);
            binding.tvTitle.setTextColor(context.getResources().getColor(R.color.white));
        }else {
            binding.tvTitle.setTextSize(17);
            binding.tvTitle.setTextColor(context.getResources().getColor(R.color.white_tou));
        }
    }


}
